﻿using System.Collections.Generic;

namespace 热更验证
{
    struct Xinnixi 
    {
        /// <summary>
        /// Id
        /// </summary>
        public string petId;

        /// <summary>
        /// 精灵名字
        /// </summary>
        public string petName;

        /// <summary>
        /// 进化Id
        /// </summary>
        public string nextPetId;

        /// <summary>
        /// 属性1
        /// </summary>
        public string element1;

        /// <summary>
        /// 属性2
        /// </summary>
        public string element2;

        /// <summary>
        /// 角色珍稀度展示
        /// </summary>
        public string petRank;

        /// <summary>
        /// 属性Id（种族值）
        /// </summary>
        public string petAbilityId;

        /// <summary>
        /// 性别
        /// </summary>
        public string sex;

        /// <summary>
        /// 是否有性别
        /// </summary>
        public string isNullSex;

        /// <summary>
        /// 是否闪光
        /// </summary>
        public string flash;

        /// <summary>
        /// 是否存在图鉴之中
        /// </summary>
        public string isInPokeindex;

        /// <summary>
        /// 成长技能
        /// </summary>
        public string growSkill;

        /// <summary>
        /// 学习机技能
        /// </summary>
        public string studySkill;

        /// <summary>
        /// 普通特性
        /// </summary>
        public string characteristic;

        /// <summary>
        /// 升阶所需条件
        /// </summary>
        public string petUpgradeCondition;

        /// <summary>
        /// 升星所需条件
        /// </summary>
        public string petStarIncreaseCondition;

        /// <summary>
        /// 进化所需条件
        /// </summary>
        public string evolutionCondition;


        /// <summary>
        /// 超进化id
        /// </summary>
        public string MegaPetId;

        /// <summary>
        /// z招式
        /// </summary>
        public string zMove;

        /// <summary>
        /// 放生掉落
        /// </summary>
        public string ReleaseDropId;


        public SortedList<int, string> GetShort()
        {
            string[] name = { "petId", "petName", "nextPetId",  "element1", "element2", "petRankShow", "petAbilityId", 
                "sex","isNullSex", "flash", "isInPokeindex", "growSkill", "studySkill", "characteristic", "petUpgradeCondition", 
                "petStarIncreaseCondition", "evolutionCondition" ,"MegaPetId","zMove","ReleaseDropId"};
            SortedList<int, string> sl = new SortedList<int, string>();
            for (int i = 0; i < name.Length; i++)
            {
                sl.Add(i, name[i]);
            }
            sl.TrimExcess();
            return sl;
        }
        public SortedList<int, string> GetShortName()
        {
            string[] name = { "精灵Id", "精灵名字", "进化Id", "成长技能", "学习机", "普通特性", "特性列表", "升阶条件", "升星条件","升星材料",
                "进化条件", "进化材料" , "超进化id" , "z招式" ,"放生掉落"};
            SortedList<int, string> sl = new SortedList<int, string>();
            for (int i = 0; i < name.Length; i++)
            {
                sl.Add(i, name[i]);
            }
            sl.TrimExcess();
            return sl;
        }

    }
}
